package com.rd.student.ruanjian.class4.zhouzihe.day0803;



public class Pig extends Animal {
    String name;

    Pig(String name) {
        this.name = name;
    }

    @Override
    public void enjoy() {
        System.out.println("猪");
    }

    @Override
    public void voice() {
    }

    @Override
    public String toString() {
        return "Pig{" +
                "name='" + name + '\'' +
                '}';
    }
}
